package cn.iocoder.yudao.module.mqtt.controller.admin.deviceauth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 设备报警授权新增/修改 Request VO")
@Data
public class DeviceAuthSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22251")
    private Long id;

    @Schema(description = "设备ID", example = "5444")
    private Long deviceId;

    @Schema(description = "报警配置ID", example = "6285")
    private Long alarmId;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28792")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "用户账号", example = "王五")
    private String userName;

    @Schema(description = "微信通知")
    private String openWeixin;

    @Schema(description = "短信通知", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "短信通知不能为空")
    private String openSms;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "是否启用不能为空")
    private String ararmStatus;

    @Schema(description = "描述", example = "随便")
    private String description;

}